import java.util.Scanner;

/** 
   This program reads three integer values
   and prints out the smallest of the three.
   If the values are equal, print out only one of them.
*/
public class Smallest
{
   public static void main(String[] args)
   {
      // Print prompt to enter three integer values
      System.out.println("Please enter three integer values:");

      // Read in the three integer values
      Scanner in = new Scanner(System.in);
      int value1 = in.nextInt();
      int value2 = in.nextInt();
      int value3 = in.nextInt();
      int Smallest=0;
      if (value1 < value2)
         {
		   Smallest = value1;
 	      }
	   else  {
		     Smallest =value2;
	        }
	   if (Smallest > value3) 
	      {
		   Smallest= value3;
	      }

      System.out.println(Smallest);
   }
}